<ion-modal-view>
  <!-- <ion-header-bar>
    <h1 class="title">登录</h1>
    <div class="buttons">
      <button class="button button-clear" ng-click="closeLogin()">close</button>
    </div>
  </ion-header-bar> -->

  <ion-content>
    <div class="login">
      <img src="img/logo.png" class="logo">
      <form ng-submit="doLogin(login.$valid)" name="login">
        <div class="form-group"> 
          <label>账号:</label>
          <div  class="formError" ng-show="login.username.$error.pattern || login.username.$error.required">请填写正确的手机号码</div>
          <input type="text" class="form-control" name="username" placeholder="手机号码" ng-model="loginData.username" required ng-pattern="/^(13[0-9]|15[012356789]|18[0236789]|14[57])[0-9]{8}$/">
        </div>
        <div class="form-group">
          <label>密码:</label>
          <div class="formError" ng-show="login.password.$error.pattern || login.password.$error.required" class="pwdStatus">请填写正确的登陆密码</div>
          <input type="password" class="form-control" name="password" placeholder="6至16位无空格"  ng-model="loginData.password" required ng-pattern="/^[0-9A-Za-z]{6,16}$/">
        </div>
        <div class="form-group">
            <button class="btn" type="submit" ng-click="closeLogin()">登录</button>
        </div>
      </form>
    </div>
  </ion-content>
</ion-modal-view>